import  request  from "../utils/request";

//查询

export const queryClazzApi = (name,begin,end,page,pageSize) =>{
  return request.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);
}

//添加
export const addClazzApi = (clazz) =>{
  return request.post('/clazzs',clazz)
}

//查询回显
export const queryByIdApi = (id) =>{
  return request.get(`/clazzs/${id}`);
}

//修改
export const updateClazzApi = (clazz) =>{
  return request.put('/clazzs',clazz)
}

//删除
export const deleteClazzApi = (id)=>{
  return request.delete(`/clazzs/${id}`)
}

//查询所有班级
export const queryAllClazzApi = ()=>{
  return request.get('/clazzs/list')
}



